package com.pixiv.service.Impl;

import com.pixiv.DAO.LabelMapping;
import com.pixiv.Entity.PictureLabel;
import com.pixiv.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class LabelServiceImpl implements LabelService {

    @Autowired
    private LabelMapping labelMapping;

    @Override
    public ArrayList<PictureLabel> getPictureLabel() {
        return labelMapping.getPictureLabel();
    }

    public List<PictureLabel> getLabels()
    {
        return labelMapping.getPictureLabel();
    }
}
